package com.xinwei.shard.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@TableName(value = "player")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Player implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("en_name")
    private String enName;

    @TableField("ch_name")
    private String chName;

    @TableField("nation")
    private String nation;

}